<?php 
		require_once('inc_admin.php');?>

	        <!--PAGE CONTENT -->
	        <div id="content">

	            <div class="inner" style="min-height:1200px;">
	                <div class="row">
	                    <div class="col-lg-12">
	                    </div></div>

<?php 
		require_once('inc_admin.php');
		//连接数据库
		connect();
		$id=$_GET['id'];
		$sql="select * from videotype where tid={$id}";
		$result=mysql_query($sql) or die('查询失败！'.mysql_error());
		$row=mysql_fetch_assoc($result);
	     $typename=$row['typename'];
	     echo $typename;
		?>
		 
		 		<h3 class="text-center">修改视频类型</h3>
		 		<div class="container-fluid col-md-10">
		 	<form method="post" action="typeUpdate.php" enctype="multipart/form-data" class="form-horizontal" >
		 		
		 <!-- 	<input type="hidden" name="id" value=<?php //echo $id; ?>> -->
		 	
		<div class="form-group">
		<label for="exampleInputtypename" class="col-md-2 control-label">类型名</label>
		<div class="col-md-10">
		<input type="text" id="exampleInputtypename" name="typename" class="form-control"
		     value=<?php echo $typename; ?>>
    </div>
	</div>
	
	
	<div class="form-group">
	<div class="col-sm-offset-2 col-sm-10">
		<input type="submit" class="btn btn-default" value="修改">
		<input type="reset" class="btn btn-default" value="重置">
	</div>
	</div>
	</form>
	</div>
	            
					

	                    
	                </div>
              </div>
               </div>
     
	   
	   <!-- FOOTER -->

	    <!--END FOOTER -->
	     <!-- GLOBAL SCRIPTS -->
	    <script src="assets/plugins/jquery-2.0.3.min.js"></script>
	     <script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
	    <script src="assets/plugins/modernizr-2.6.2-respond-1.1.0.min.js"></script>
	    </body>
	    </html>
	    <!-- END GLOBAL SCRIPTS -->



















